package com.yjb.demo.brick;

import com.gitee.starblues.loader.launcher.SpringBootstrap;
import com.gitee.starblues.loader.launcher.SpringMainBootstrap;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author yinjinbiao
 * @create 2024/6/26 17:20
 */
@SpringBootApplication
public class BrickApplication implements SpringBootstrap {

    public static void main(String[] args) {
        SpringMainBootstrap.launch(BrickApplication.class, args);
    }

    @Override
    public void run(String[] args) throws Exception {
        // 在该实现方法中, 和 SpringBoot 使用方式一致
        SpringApplication.run(BrickApplication.class, args);
    }
}
